#include <iostream>
#include <vector>

using namespace ::std;
using std::vector;

int main() {
  int i;
  vector<int> v;
  while (cin >> i) {
    v.push_back(i);
  }
  cout << v.size() << endl;
  return 0;
}